package com.anywhere.freightman.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = "${wx.app.url}", name = "WxService")
public interface WxService {

    @GetMapping("sns/jscode2session")
    String jscode2session(@RequestParam("appid") String appid,
                              @RequestParam("secret") String secret,
                              @RequestParam("js_code") String jsCode,
                              @RequestParam("grant_type") String grantType);
}
